package com.own.component.mybatis.property;

import com.own.constant.ConstantValue;
import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * MybatisProperty
 *
 * @author chenxueli
 * @date 2022-06-15 03:14:15
 */
@Data
@SpringBootConfiguration
@ConfigurationProperties(prefix = MybatisProperty.PREFIX)
public class MybatisProperty {

    public static final String PREFIX = ConstantValue.CONFIG_VALUE_CONTENT + "mybatis.aspect";

    /**
     * 插入操作
     */
    private boolean insert = true;

    /**
     * 批量插入操作
     */
    private boolean insertBatch = true;

    /**
     * 更新操作
     */
    private boolean update = true;

    /**
     * 删除操作
     */
    private boolean delete = true;

}
